/* Yet Another Experimental Software Renderer
 *
 * Copyright (c) 2010 Pawel "Hery" Dziepak
 */

#ifndef PIXEL_OUTPUT_H_
#define PIXEL_OUTPUT_H_

#include "texture.h"

namespace yaesr {
	class pixel_output : public texture {
	public:
		pixel_output(int w, int h) : texture(w, h) { }

		virtual void flush() = 0;

		color get_pixel(int, int) const {
			Warning("Attempt to read from pixel output.");

			return color(0.0);
		}

		virtual void clear(color pixel_color) = 0;
	};
}

#endif